package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 歌曲信息表
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("m_music")
public class Music{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "歌曲名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "文件路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "文件大小")
    @TableField("size")
    private Long size;

    @ApiModelProperty(value = "文件类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "歌单文件夹id")
    @TableField("folder_id")
    private Long folderId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty(value = "逻辑删除(0-未删除 1-已删除)")
    @TableField("del_flag")
    private Integer delFlag;

}
